<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>css/template.css">
<h2>Order List</h2>
<?php 
		echo "<p>" . anchor('admin_home','Back') . "</p>";

		echo "<table>";
		echo "<tr><th>Id</th><th>Customer_Id</th><th>Date</th><th>Time</th><th>Total</th></tr>";
		
		foreach ($allorders as $order) {
			echo "<tr>";
			echo "<td>" . $order->id . "</td>";
			echo "<td>" . $order->customer_id . "</td>";
			echo "<td style='width:100px'>" . $order->order_date . "</td>";
			echo "<td style='width:80px'>" . $order->order_time . "</td>";
			echo "<td style='width:50px'>" . $order->total . "</td>";
				
			echo "<td>" . anchor("order_list/read/$order->id",'View Details') . "</td>";
			echo "</tr>";
		}
		echo "<table>";
?>
